package com.zs.java.generic;

import java.util.ArrayList;
import java.util.List;

/**
 * @author madison
 * @description
 * @date 2021/6/1 12:22
 */
public class Main {
    public static void main(String[] args) {
        List arrayList = new ArrayList();
        arrayList.add("aaaa");
        arrayList.add(100);
        for (int i = 0; i < arrayList.size(); i++) {
            String item = (String) arrayList.get(i);
            System.out.println("泛型测试item="+item);
        }
    }
}
